﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddGBook.ascx.cs" Inherits="Control_AddGBook" %>
<div style="text-align:center;">
<asp:Label ID="LB_AddGBook" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>
    <table border="1" cellpadding="0" cellspacing="0" style="width: 95%; text-align:center;">
        <tr>
            <td align="right" style="width: 25%;">
                主题：</td>
            <td align="left" style="width: 75%; height: 30px;">
                &nbsp;<asp:TextBox ID="TB_Title" runat="server" Width="230px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_TB_Title" runat="server" ControlToValidate="TB_Title"
                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                姓名：</td>
            <td align="left" style="width: 75%; height: 30px;">
                &nbsp;<asp:TextBox ID="TB_Name" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_TB_Name" runat="server" ControlToValidate="TB_Name"
                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                电话：</td>
            <td align="left" style="width: 75%; height: 30px;">
                &nbsp;<asp:TextBox ID="TB_Tel" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_TB_Tel" runat="server" ControlToValidate="TB_Tel"
                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                Email：</td>
            <td align="left" style="width: 75%; height: 30px;">
                &nbsp;<asp:TextBox ID="TB_Email" runat="server"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                    ID="RFV_TB_Mail" runat="server" ErrorMessage="*" ControlToValidate="TB_Email" Display="Dynamic"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                        ID="REV_TB_Email" runat="server" ControlToValidate="TB_Email" Display="Dynamic"
                        ErrorMessage="Email格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                QQ：</td>
            <td align="left" style="width: 75%; height:30px;">
                &nbsp;<asp:TextBox ID="TB_QQ" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                留言内容：</td>
            <td align="left" style="width: 75%; height: 30px;">
                &nbsp;<asp:TextBox ID="TB_Content" runat="server" MaxLength="200" TextMode="MultiLine" Rows="6" Width="289px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_TB_Content" runat="server" ControlToValidate="TB_Content"
                    ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" text-align:center; height:30px;">
                <asp:Button ID="Btn_Submit" runat="server" Text="提交" OnClick="Btn_Submit_Click" />
                 &nbsp;
                <asp:Button ID="Btn_Cancel" runat="server" Text="取消" /></td>
        </tr>
    </table>
</div>